package com.zh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zh.dao.UserDao;
import com.zh.model.User;
import com.zh.service.UserService;

@Service
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserDao userDao;
	
	@Override
	public void add(User user) {
		userDao.add(user);
	}

	@Override
	public void mod(User user) {
		userDao.mod(user);
	}

	@Override
	public void del(int id) {
		userDao.del(id);
	}

	@Override
	public List query(User user) {
		return userDao.query(user);
	}

	@Override
	public int login(User user) {
		return userDao.login(user);
	}

}
